import service from '@/utils/request';

// 指标数据
export const queryKeyIndicators = () => {
  return service.request({
    url: '/patient/SysHomePageController/queryKeyIndicators',
    method: 'get',
  });
};
// 数据统计
export const queryDataStatistics = () => {
  return service.request({
    url: '/patient/SysHomePageController/queryDataStatistics',
    method: 'get',
  });
};
// 一键求救人员
export const querySeekHelpPersonnel = () => {
  return service.request({
    url: '/patient/SysHomePageController/querySeekHelpPersonnel',
    method: 'get',
  });
};
// 异常人员
export const abnormalInfoPersonnel = () => {
  return service.request({
    url: '/patient/SysHomePageController/abnormalInfoPersonnel',
    method: 'get',
  });
};
// 实时统计数据
export const queryRealTimeHealthy = (params: any) => {
  return service.request({
    url: '/patient/SysHomePageController/queryRealTimeHealthy',
    method: 'get',
    params,
  });
};
// 实时睡眠数据
export const userSleep = (params: any) => {
  return service.request({
    url: '/patient/SysHomePageController/userSleep',
    method: 'get',
    params,
  });
};
// 实时心率数据
export const queryUserHeartRate = (params?: any) => {
  return service.request({
    url: '/patient/SysHomePageController/queryUserHeartRate',
    method: 'get',
    params,
  });
};
// 实时血氧数据
export const userBloodSugar = (params?: any) => {
  return service.request({
    url: '/patient/SysHomePageController/userBloodSugar',
    method: 'get',
    params,
  });
};

// 患者路径点
export const positionlist = (params?: any) => {
  return service.request({
    url: '/patient/SysHomePageController/positionlist',
    method: 'get',
    params,
  });
};

export default null;
